#ifndef TCPCLIENT_H
#define TCPCLIENT_H

#include <QWidget>
#include<QTcpSocket>
QT_BEGIN_NAMESPACE
namespace Ui
{
class tcpClient;
}
QT_END_NAMESPACE

class tcpClient : public QWidget
{
    Q_OBJECT

public: tcpClient(QWidget* parent = nullptr);
    ~tcpClient();

private slots:
    void on_openBt_clicked();

    void connected_Slot();
    void readyRead();
    void on_closeBt_clicked();

    void on_Send_clicked();

private:
    Ui::tcpClient* ui;
    QTcpSocket* m_tcpsocket;
};
#endif // TCPCLIENT_H
